/*
* This file is a part of the open-eBackup project.
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
*
* Copyright (c) [2024] Huawei Technologies Co.,Ltd.
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
*/
#include "QueryResourceListRequest.h"

namespace HcsPlugin {
QueryResourceListRequest::QueryResourceListRequest() {}

QueryResourceListRequest::~QueryResourceListRequest() {}

Scope QueryResourceListRequest::GetScopeType() const
{
    return Scope::USER_DOMAIN;
}

ApiType QueryResourceListRequest::GetApiType()
{
    return ApiType::SC;
}

int32_t QueryResourceListRequest::GetStart() const
{
    return m_offset;
}

void QueryResourceListRequest::SetStart(int32_t offset)
{
    m_offset = offset;
    m_offstIsSet = true;
}

bool QueryResourceListRequest::GetStartIsSet() const
{
    return m_offstIsSet;
}

int32_t QueryResourceListRequest::GetLimit() const
{
    return m_limit;
}

void QueryResourceListRequest::SetLimit(int32_t limit)
{
    m_limit = limit;
    m_limitIsSet = true;
}

bool QueryResourceListRequest::GetLimitIsSet() const
{
    return m_limitIsSet;
}

std::string QueryResourceListRequest::GetVdcManagerId() const
{
    return m_vdcManagerId;
}

void QueryResourceListRequest::SetVdcManagerId(const std::string &value)
{
    m_vdcManagerId = value;
    m_vdcManagerIdIsSet = true;
}

bool QueryResourceListRequest::VdcManagerIdIsSet() const
{
    return m_vdcManagerIdIsSet;
}

std::string QueryResourceListRequest::GetQueryAllProjectStr() const
{
    return m_allProjectQuery;
}
void QueryResourceListRequest::SetQueryAllProject(const bool value)
{
    m_allProjectQuery = value ? "true" : "false";
    m_allProjectQueryIsSet = value;
}

bool QueryResourceListRequest::GetQueryAllProjectIsSet() const
{
    return m_allProjectQueryIsSet;
}
}